import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import ElIcon from "@ecology-ui/components/icon";
import ElButton,{ElButtonGroup} from '@ecology-ui/components/button'
import ElInput from '@ecology-ui/components/input'
import "@ecology-ui/theme-chalk/src/index.scss";
const app = createApp(App)
const components = [ElIcon,ElButton,ElButtonGroup,ElInput]
const INSTALL_KEY = Symbol("INSTALL_KEY")
const ElementPlus = {
    install(app: any) {
        if (app[INSTALL_KEY]) return
        app[INSTALL_KEY] = true
        components.forEach(el => app.use(el))
    }
}
app.use(ElementPlus)
app.mount('#app')